import request from "@/utils/request";
// 调用权限
export default {
  getDocumentAdopt(data) {
    return request({
      url: "/api/document/adopt/",
      method: "get",
      params: data
    });
  },
  getDeptListById(data) {
    return request({
      url: "/api/accounts/dept_user/",
      method: "get",
      params: data
    });
  },
  getDocumentCategory(data) {
    return request({
      url: "/api/document/category/",
      method: "get",
      params: data
    });
  },
  getDocumentUpload(id,data) {
    return request({
      url: "/api/document/"+id+"/files/",
      method: "put",
      data
    });
  },
  getDocumentNum(data) {
    return request({
      url: "/api/document/get_num/",
      method: "get",
      params: data
    });
  },
  getDocumentSaveBh(id,data) {
    return request({
      url: "/api/document/"+id+"/save_bh/",
      method: "post",
      params: data
    });
  },

};
